package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 时间条目表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "timeentry")
public class Timeentry implements Serializable {
    public static final String COL_TIMEENTRY_ID = "timeentry_id";
    public static final String COL_TIMEENTRY_SERVICE_STAFF = "timeentry_service_staff";
    public static final String COL_TIMEENTRY_CHARGING_TYPE = "timeentry_charging_type";
    public static final String COL_TIMEENTRY_EXECUTE_TIME = "timeentry_execute_time";
    public static final String COL_TIMEENTRY_SUSTAIN_TIME_HOUR = "timeentry_sustain_time_hour";
    public static final String COL_TIMEENTRY_SERVICE_COST = "timeentry_service_cost";
    public static final String COL_TIMEENTRY_ADDITIONAL_COST = "timeentry_additional_cost";
    public static final String COL_TIMEENTRY_TOTAL_COST = "timeentry_total_cost";
    public static final String COL_TIMEENTRY_CHARGING = "timeentry_charging";
    public static final String COL_TIMEENTRY_DESCRIBE = "timeentry_describe";
    /**
     * 编号
     */
    @TableId(value = "timeentry_id", type = IdType.INPUT)
    private Integer timeentryId;

    /**
     * 服务人员
     */
    @TableField(value = "timeentry_service_staff")
    private Integer timeentryServiceStaff;

    /**
     * 工单计费类型
     */
    @TableField(value = "timeentry_charging_type")
    private Integer timeentryChargingType;

    /**
     * 执行时间
     */
    @TableField(value = "timeentry_execute_time")
    private Date timeentryExecuteTime;

    /**
     * 持续时间（小时,分钟，秒）
     */
    @TableField(value = "timeentry_sustain_time_hour")
    private Date timeentrySustainTimeHour;

    /**
     * 每小时的服务人员成本
     */
    @TableField(value = "timeentry_service_cost")
    private BigDecimal timeentryServiceCost;

    /**
     * 附加成本
     */
    @TableField(value = "timeentry_additional_cost")
    private BigDecimal timeentryAdditionalCost;

    /**
     * 总成本
     */
    @TableField(value = "timeentry_total_cost")
    private BigDecimal timeentryTotalCost;

    /**
     * 计费类型（1，计费  2，非计费）
     */
    @TableField(value = "timeentry_charging")
    private Integer timeentryCharging;

    /**
     * 描述
     */
    @TableField(value = "timeentry_describe")
    private String timeentryDescribe;

    private static final long serialVersionUID = 1L;
}